how to create elements using javascript